# import math
# a = int(input("请输入边长a:"))
# b = int(input("请输入边长b:"))
# c = int(input("请输入边长c:"))

######### if...else...的基本使用
#
# if a>0 and b>0 and c>0 and a+b>c and c+a>b and b+c >a:
#     #计算半边长
#     p = (a+b+c) / 2
#     #计算面积
#     s = math.sqrt(p*(p-a)*(p-b)*(p-c))
#     print(s)
# else:
#     print("输入不合法")

######### if..else..嵌套使用
# if a>0 and b>0 and c>0:
#     if a+b>c and a+c>b and b+c >a:
#         #计算半边长
#         p = (a+b+c) / 2
#         #计算面积
#         s = math.sqrt(p*(p-a)*(p-b)*(p-c))
#         print(s)
#     else:
#         print("两边之和小于第三边，不合法")
# else:
#     # pass
#     print("边长不能小于0")

###if ..elif...else...#############
# if exp1:
#     语句1
# elif exp2:
#     语句二
# elif exp3:
#     语句三
# else:
#     语句四
#
# if a<=0 or b<=0 or c<=0:
#     print("边长不能小于等于0，不合法")
# elif a+b<=c or b+c<=a or a+c<=b:
#     print("两边之和小于第三边，不合法")
# else:
#     #计算半边长
#     p = (a+b+c) / 2
#     #计算面积
#     s = math.sqrt(p*(p-a)*(p-b)*(p-c))
#     print(s)


##########if三元运算###############
#     if a>b:
#       c=a
#     else:
#       c=b

# c = a>b and a or b

a = 10
b = 20

c = a if a>b else b
print(c)

msg = "恒大雅苑|别墅|40平米|无电梯"
#有别墅， type="别墅"
#有车位， type="车位"
#都没有， type="高层"

# if "别墅" in msg:
#     type = "别墅"
# elif "车位" in msg:
#     type = "车位"
# else:
#     type = "高层"

#三元运算
type = "别墅" if "别墅" in msg else "车位" if "车位" in msg else "高层"
print(type)
